package com.hsq.db137.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsq.db137.demos.entity.Menuinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: hsq加油
 * @CreateTime: 2024/12/24-11:48
 * @Description: TODO
 * @Version: 1.0
 */
public interface MenuinfoMapper extends BaseMapper<Menuinfo> {

    /**
     * 一级菜单
     * @param id 用户id
     * @return 菜单类
     */
    List<Menuinfo> selectListOne(@Param("id") int id);


    /**
     * 二级菜单
     * @param id 用户id
     * @return 菜单类
     */
    List<Menuinfo> selectListTwo(@Param("id") int id);


    List<Menuinfo> selectListByUid(@Param("id")int id);
}